//
//  tgTableViewCell.m
//  tuangouPak
//
//  Created by student on 16/3/7.
//  Copyright © 2016年 niit. All rights reserved.
//

#import "tgTableViewCell.h"


@implementation tgTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setTg:(tgmodel *)tg
{
    _tg = tg;
    self.tgimg.image = [UIImage imageNamed:tg.icon];
    self.tgprice.text = [NSString stringWithFormat:@"¥%@",tg.price];
    self.tgtitle.text = tg.title;
    self.tgbuycount.text = [NSString stringWithFormat:@"已有%@人购买",tg.buyCount];
}
@end
